package org.senseframework.support.orm.hibernate;




import org.senseframework.support.orm.hibernate.query.hql.HQLQueryBuilder;
import org.senseframework.support.orm.hibernate.query.qbc.EntityQueryBuilder;

import java.io.Serializable;

/**
 * User: LanJian
 * 基础领域对象
 * 充血模型
 * 使用jpa注解配置
 */
public abstract class BasicDomain<T,K extends Serializable> extends DomainHibernateImpl<T,K> implements Serializable {
    public synchronized static HQLQueryBuilder build() {
        return new HQLQueryBuilder();
    }

    public synchronized static EntityQueryBuilder build(Class clazz) {
        return new EntityQueryBuilder(clazz);
    }

    protected BasicDomain(){

    }
}
